package com.hnucm.c201901020121.Fragment.Message.model;

import android.content.Context;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Model {
    private Context mContext;
    private ExecutorService excutors= Executors.newCachedThreadPool();
    //创建对象
    private static Model model=new Model();
    //私有化构造
    private Model(){

    }
    //获取单例对象
    public static Model getIntance(){
        return model;
    }
    public void init(Context context){
        mContext=context;
    }
    //获取全局的线性池
   public ExecutorService getGlobalThreadPool(){
        return excutors;
   }
}
